package com.liuyingxing.entity.account;

import com.liuyingxing.entity.common.AbstractEntity;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.List;

/**
 * Created by IntelliJ IDEA.
 * @File Resource.java
 * @Auth liuxing
 * @Date 2021/8/22 10:13
 * @Email liuxing997@foxmail.com
 */
@Entity
@Table(name = "account_resource")
public class Resource extends AbstractEntity {
    private static final long serialVersionUID = 1L;
    private String permission;
    @Transient
    private List<Role> roles;

    public String getPermission() {
        return permission;
    }

    public void setPermission(String permission) {
        this.permission = permission;
    }

    public List<Role> getRoles() {
        return roles;
    }

    public void setRoles(List<Role> roles) {
        this.roles = roles;
    }
}
